package com.roin.learn.activiti.service;

import com.roin.learn.activiti.base.BaseService;
import org.activiti.engine.form.FormProperty;

import java.util.List;

/**
 * 流程表单业务接口
 */
public interface ProcessFormService extends BaseService{
    /**
     * 获取流程定义的启动表单Html
     * @param processDefintionId
     * @return
     */
    public String getStartFromHtml(String processDefintionId);

    /**
     * 获取任务的表单Html
     * @param taskId
     * @return
     */
    public String getTaskFormHtml(String taskId);
    /**
     * 获取流程定义的启动表单属性
     * @param processDefintionId
     * @return
     */
    public List<FormProperty> getStartFormProperties(String processDefintionId);

    /**
     * 获取任务的表单属性
     * @param taskId
     * @return
     */
    public List<FormProperty> getTaskFormProperties(String taskId);
}
